// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import { createPinia } from "pinia";
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
	pinia
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import { createUnistorage } from '@/uni_modules/pinia-plugin-unistorage';
import '@/utils/interceptor.js'

export function createApp() {
	const app = createSSRApp(App)
	const pinia = createPinia()
	pinia.use(createUnistorage())
	app.use(pinia)
	return {
		app,
		pinia
	}
}
// #endif